{include file="public/header"}
<script src="__JS__/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
	<div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加用户</strong></div>
	<div class="body-content">
		<form method="post" class="form-x" action="{:url('userAdd')}">
			<div class="form-group">
				<div class="label">
					<label>会员名：</label>
				</div>
				<div class="field">
					<input type="text" class="input w50" value="" name="uname" data-validate="required:请输入会员名" />
					<div class="tips"></div>
				</div>
			</div>
			<div class="form-group">
				<div class="label">
					<label for="sitename">密码：</label>
				</div>
				<div class="field">
					<input type="password" class="input w50" name="upwd" size="50" placeholder="请输入新密码" data-validate="required:请输入新密码,length#>=5:新密码不能小于5位" />
				</div>
			</div>
			<div class="form-group">
				<div class="label">
					<label for="sitename">确认密码：</label>
				</div>
				<div class="field">
					<input type="password" class="input w50" name="pwd2" size="50" placeholder="请再次输入新密码" data-validate="required:请再次输入新密码,repeat#upwd:两次输入的密码不一致" />
				</div>
			</div>
			<div class="form-group">
				<div class="label">
					<label>性别：</label>
				</div>
				<div class="field" style="padding-top:8px;">
					<input type="radio" name="sex" value="1" checked/> 男
					<input type="radio" name="sex" value="0" /> 女
				</div>
			</div>
			<div class="clear"></div>
			<div class="form-group">
				<div class="label">
					<label>手机号：</label>
				</div>
				<div class="field">
					<input type="number" class="input w50" name="tel" value="" />
				</div>
			</div>
			<div class="form-group">
				<div class="label">
					<label>邮箱：</label>
				</div>
				<div class="field">
					<input type="email" class="input w50" name="email" value=""/>
				</div>
			</div>
			<div class="form-group">
				<div class="label">
					<label>网站LOGO：</label>
				</div>
				<div class="field">
					<input type="text" readonly id="url1" class="input tips" style="width:25%; float:left;" value="" data-toggle="hover" data-place="right" />
					<input type="button"  class="button bg-blue margin-left" id="image1" value="+ 浏览上传" >
					<input type="file" name="logo" onchange="url1.value=this.value" style="position:relative; z-index:1000px; filter:alpha(opacity=0);-moz-opacity:0; opacity:0; left:-155px;" />
				</div>
			</div>
			<div class="form-group">
				<div class="label">
					<label>用户权限：</label>
				</div>
				<div class="field">
					<select name="author" class="input w50">
						<option value="">请选择权限</option>
						{foreach $list as $v}
						<option value="{$v['id']}">{$v['title']}</option>
						{/foreach}
					</select>
					<div class="tips"></div>
				</div>
			</div>
			<div class="form-group">
				<div class="label">
					<label></label>
				</div>
				<div class="field">
					<button class="button bg-main icon-check-square-o" type="submit"> 添加</button>
				</div>
			</div>
		</form>
	</div>
</div>
</body>

</html>